package com.misena.praxispraktik.controller;

import com.misena.praxispraktik.entity.Personas;
import com.misena.praxispraktik.facade.PersonasFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "personasController")
@ViewScoped
public class PersonasController extends AbstractController<Personas> implements Serializable {

    @EJB
    private PersonasFacade ejbFacade;

    public PersonasController() {
        super(Personas.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }
}
